<header class="main-header">
    <!-- Logo -->
    <a href="{{ url('login') }}" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      {{--<span class="logo-mini"><img src="{{ asset("/image/logo-mini.png") }} " ></span>--}}
      <span class="logo-mini">后台</span>
      <!-- logo for regular state and mobile devices -->
      {{--<span class="logo-lg"><img src="{{ asset("/image/logo-lg.png") }} " ></span>--}}
      <span class="logo-lg">光速洗车后台管理系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">

          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="{{ asset("/image/admin_pic.jpg") }} " class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs">{{ Auth::user()->name }} </span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="{{ asset("/image/admin_pic.jpg") }} " class="img-circle" alt="User Image">

                <p>
                  {{ Auth::user()->name }}
                  <small>最近-次登录时间 {{ Auth::user()->last_login }}</small>
                </p>
              </li>

              <!-- Menu Footer-->
              <li class="user-footer">
                {{--<div class="pull-left">--}}
                  {{--<a href="#" class="btn btn-default btn-flat">Profile</a>--}}
                {{--</div>--}}
                <div class="pull-right">
                  <a href="{{ route('logout') }}" class="btn btn-default btn-flat"
                     onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                    登出
                  </a>
                  <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                    {{ csrf_field() }}
                  </form>
                </div>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </nav>
  </header>